% Remainder (modular division; e.g. “17%5” yields 2.)
_________________________________________
^ {Exponentiation}
** {Exponentiation}
_________________________________________
- (Unary) negation, e.g. “-3+2” will evaluate to -1.
// A short-hand notation for (unary) inversion, e.g.
“3+//5” is equivalent to “3+1/5” and will evaluate to 3.2.
_________________________________________
|| Parallel operator (for electrical impedances). “R1 || R2” will
evaluate to the same number that “R1*R2/(R1+R2)” will.
Note that “C1 || C2” will determine the combined impedance
of two capacitors in series, rather than in parallel;
capacitance has units inverse to those of impedance.
Like other operators, this operator can be strung together;
“10 || 6 || 6” yields the impedance of a 10 ohm resistor in
parallel with a 6 ohm resistor in parallel with another
6 ohm resistor.
Horizontal lines in the listing above separate operators into groups having equal priorities. Operator groups having the lowest priority (and therefore tending to execute last, unless enclosed in parentheses with their operands) are listed at the top. Identical operators and operators with equal priority are evaluated left to right. Therefore “1/1/2” is equivalent to “(1/1)/2”, not “1/(1/2)”. Examining this list will reveal that Real Answer generally uses the standard algebraic order of evaluation, i.e. that “3+2*6” will be equivalent to “3+(2*6)” and yield 15, and that (for instance) “4/2*3” will be equivalent to “(4/2)*3” and yield 6. Beware of this common mistake: “4/2*3” sometimes is mistaken to mean “4/(2*3)”. It does not.
ADDITIONAL OPERATOR:
:= Assignment can also be considered to be an
operator that executes after all the other operators
finish. (For typing convenience, “=” also performs